from django.urls import path, include
from rest_framework.routers import DefaultRouter

from apps.survey_system.mini_program.views import SurveyViewSet, SurveyAccountViewSet, UploadViewSet, SwiperViewSet, \
    ModuleViewSet, UploadWXPhotoViewSet

router = DefaultRouter()

# 调查
router.register('survey', SurveyViewSet, basename='survey')

# 文件
router.register('upload_file', UploadViewSet, basename='file_history')

router.register('upload_wx_photo', UploadWXPhotoViewSet, basename='file')

# 调查填写的人
router.register('survey_account', SurveyAccountViewSet, basename='survey_account')


router.register('swiper', SwiperViewSet, basename='swiper')
router.register('module', ModuleViewSet, basename='module')

urlpatterns = [
    path('api/', include(router.urls)),
]
